package homework.day07.bean;

/**
 * @author ThinkBook
 */
public class Worker extends Employee {
    private String name;
    private int day;
    private double wages ;
    public Worker(String name, String gender, String years, int day){
        super(name,gender,years);
        this.name = name;
        this.day = day;
    }
    @Override
    public void computeSalary(){
        wages = this.day*200;
        System.out.println("工人"+name+"本月工资为"+wages);
    }
}
